package com.ss.android.article.base.feature.detail2.video.a;

import android.animation.ObjectAnimator;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v4.app.FragmentActivity;
import android.support.v4.content.ContextCompat;
import android.text.Html;
import android.text.SpannableString;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.style.URLSpan;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.bytedance.article.common.c.TTUtils;
import com.bytedance.common.utility.UIUtils;
import com.ss.android.account.b.a.b.b$a;
import com.ss.android.account.model.BaseUser;
import com.ss.android.action.ArticleActionHelper;
import com.ss.android.article.base.app.AppData;
import com.ss.android.article.base.feature.detail.model.AdVideoInfo;
import com.ss.android.article.base.feature.detail2.video.NewVideoDetailFragment;
import com.ss.android.article.base.feature.model.Article;
import com.ss.android.article.base.feature.model.MediaInfo;
import com.ss.android.article.base.feature.subscribe.b.SubscribeManager;
import com.ss.android.article.base.feature.subscribe.model.EntryItem;
import com.ss.android.article.base.feature.subscribe.model.SubscribeData;
import com.ss.android.article.base.ui.DiggLayout;
import com.ss.android.article.base.ui.DrawableButton;
import com.ss.android.article.base.ui.j;
import com.ss.android.article.base.ui.DiggAnimationView;
import com.ss.android.article.base.utils.b.d;
import com.ss.android.article.base.utils.b.e;
import com.ss.android.b.a.BaseAdsData;
import com.ss.android.common.lib.MobClickCombiner;
import com.ss.android.common.callback.CallbackCenter;
import com.ss.android.common.ui.view.AlphaImageView;
import com.ss.android.image.AsyncImageView;
import com.ss.android.image.AvatarLoader;
import com.ss.android.image.loader.ImageLoader;
import com.ss.android.model.AbsArticle;
import com.ss.android.newmedia.BaseAppData;
import com.ss.android.newmedia.util.AppUtil;

import org.json.JSONException;
import org.json.JSONObject;

public final class VideoDetailExtraHolder implements b$a, SubscribeManager.SubscribeDataChangeListener, com.ss.android.article.base.utils.b.e.a {
    public ProgressBar mProgressBar;
    public TextView mPraiseBtn;
    public AsyncImageView mThirdPartnerImageView;
    public View mVideoCoverLayout;
    public TextView mCoverBack;
    public TextView mCoverTitle;
    public ImageView mCoverPlayIcon;
    public ImageView mCoverImage;
    public DrawableButton mCoverDuration;
    public TextView mCoverSource;
    public g$a K;
    public com.ss.android.article.base.feature.detail2.video.a.a L;
    public boolean M;
    public TextView mVideoExtendLinkText;
    public View.OnClickListener O;
    public Context mContext;
    public AvatarLoader mAvatarLoader;
    public ImageLoader mImageLoader;
    public long d;
    public Article mArticle;
    public MediaInfo f;
    public boolean g;
    public View h;
    public TextView mVideoTitleTv;
    public TextView mVideoContentTv;
    public ImageView mExpandBtn;
    public TextView mWatchCountTv;
    public View mWatchCountDivider;
    public TextView mTxtReprintPGC;
    public DiggLayout mDiggLayout;
    public DiggLayout mBuryLayout;
    public View shareLayout;
    public AlphaImageView ivQQ;
    public View mPGCInfoTopDivider;
    public View mPGCInfoBottomDivider;
    public View mPGCInfoLayout;
    public ImageView mPGCAvatarIv;
    public TextView mPGCNameTv;
    public ImageView mPGCVerifiedImage;
    public TextView mSubscribeBtn;
    public ImageView mSubscribeStatus;
    private ArticleActionHelper P;
    private AlphaImageView ivWechat;
    private AlphaImageView ivMoment;
    private boolean S;
    private View.OnTouchListener T;
    public VideoDetailExtraHolder(Context context, View view, ImageLoader arg8, AvatarLoader arg9, ArticleActionHelper arg10, DiggAnimationView arg11) {
        this.S = false;
        this.O = new com.ss.android.article.base.feature.detail2.video.a.h(this);
        this.T = new i();
        SubscribeManager.init(context.getApplicationContext());
        SubscribeManager.getInstance().addSubscribeDataChangeListener(((SubscribeManager.SubscribeDataChangeListener) this));
        com.ss.android.account.b.a.b.a(context).a(((b$a) this));
        this.mContext = context;
        AppData.getInstance();
        this.g = AppData.isNightMode();
        this.mImageLoader = arg8;
        this.mAvatarLoader = arg9;
        this.P = arg10;
        this.h = view;
        com.ss.android.article.base.feature.detail2.config.a.a(view, this.mContext.getResources().getColor(com.ss.android.article.browser.R.color.ssxinmian4));
        this.mVideoTitleTv = view.findViewById(com.ss.android.article.browser.R.id.video_title);
        this.mVideoTitleTv.setOnClickListener(this.O);
        this.mVideoContentTv = view.findViewById(com.ss.android.article.browser.R.id.video_content);
        this.mExpandBtn = view.findViewById(com.ss.android.article.browser.R.id.expand_btn);
        this.mExpandBtn.setOnClickListener(this.O);
        this.mWatchCountTv = view.findViewById(com.ss.android.article.browser.R.id.watch_count);
        this.mTxtReprintPGC = view.findViewById(com.ss.android.article.browser.R.id.txt_reprint_pgc);
        this.mWatchCountDivider = view.findViewById(com.ss.android.article.browser.R.id.watch_count_divider);
        this.mDiggLayout = view.findViewById(com.ss.android.article.browser.R.id.digg_layout);
        this.mDiggLayout.setOnClickListener(this.O);
        this.mBuryLayout = view.findViewById(com.ss.android.article.browser.R.id.bury_layout);
        this.mBuryLayout.setOnClickListener(this.O);
        this.mDiggLayout.setDiggAnimationView(arg11);
        this.mBuryLayout.setDiggAnimationView(arg11);
        this.mBuryLayout.a(com.ss.android.article.browser.R.drawable.og, com.ss.android.article.browser.R.drawable.of, AppData.isNightMode());
        this.shareLayout = view.findViewById(com.ss.android.article.browser.R.id.ll_share_layout);
        view.findViewById(com.ss.android.article.browser.R.id.tv_share);
        this.ivWechat = view.findViewById(com.ss.android.article.browser.R.id.iv_wechat);
        this.ivWechat.setOnClickListener(this.O);
        this.ivMoment = view.findViewById(com.ss.android.article.browser.R.id.iv_moment);
        this.ivMoment.setOnClickListener(this.O);
        this.ivQQ = view.findViewById(com.ss.android.article.browser.R.id.iv_qq);
        this.ivQQ.setOnClickListener(this.O);
        this.mPraiseBtn = view.findViewById(com.ss.android.article.browser.R.id.praise_btn);
        this.mPraiseBtn.setOnClickListener(this.O);
        this.mPGCInfoTopDivider = view.findViewById(com.ss.android.article.browser.R.id.pgc_info_top_divider);
        this.mPGCInfoBottomDivider = view.findViewById(com.ss.android.article.browser.R.id.pgc_info_bottom_divider);
        this.mPGCInfoLayout = view.findViewById(com.ss.android.article.browser.R.id.pgc_info_layout);
        this.mPGCAvatarIv = view.findViewById(com.ss.android.article.browser.R.id.pgc_avatar);
        this.mPGCAvatarIv.setOnClickListener(this.O);
        this.mPGCAvatarIv.setOnTouchListener(this.T);
        this.mThirdPartnerImageView = view.findViewById(com.ss.android.article.browser.R.id.third_partner_image_view);
        this.mThirdPartnerImageView.setOnClickListener(this.O);
        this.mThirdPartnerImageView.setOnTouchListener(this.T);
        this.mPGCNameTv = view.findViewById(com.ss.android.article.browser.R.id.pgc_name);
        this.mPGCNameTv.setOnClickListener(this.O);
        this.mPGCVerifiedImage = view.findViewById(com.ss.android.article.browser.R.id.pgc_verified_img);
        this.mSubscribeBtn = view.findViewById(com.ss.android.article.browser.R.id.subscribe_btn);
        this.mSubscribeStatus = view.findViewById(com.ss.android.article.browser.R.id.subscribe_status);
        this.mSubscribeBtn.setOnClickListener(this.O);
        this.mProgressBar = view.findViewById(com.ss.android.article.browser.R.id.subscribe_progress);
        this.mVideoExtendLinkText = view.findViewById(com.ss.android.article.browser.R.id.video_extend_link_text);
        this.S = android.support.design.a.m() == 2;
        if (this.S) {
            this.mSubscribeBtn.setText(com.ss.android.article.browser.R.string.video_detail_pgc_follow);
        }
    }

    private void a(int arg2, int arg3) {
        android.support.design.a.showImageToast(this.mContext, arg3, arg2);
    }

    public final SpannableString a(String arg6) {
        SpannableString spannableString;
        if (android.support.design.a.isTextEmpty(arg6)) {
            return null;
        }
        spannableString = new SpannableString(arg6 + "icon");
        try {
            j v1 = new j(this.mContext, com.ss.android.article.browser.R.drawable.t1);
            v1.a = ((int) UIUtils.dp2px(this.mContext, 6f));
            spannableString.setSpan(v1, arg6.length(), arg6.length() + 4, 33);
        } catch (Exception exception) {
            spannableString = new SpannableString(arg6);
        }

        return spannableString;
    }

    public final void a() {
        TextView v0_1;
        int v5 = com.ss.android.article.browser.R.color.ssxinzi3_selector;
        int v4 = com.ss.android.article.browser.R.string.video_detail_pgc_subscribe;
        int v3 = com.ss.android.article.browser.R.string.video_detail_pgc_follow;
        int v2 = View.GONE;
        if (this.f == null || this.f.entryItem == null || this.mArticle == null || !this.mArticle.showPgcSubscribe) {
            UIUtils.setVisibility(this.mPGCInfoLayout, v2);
            UIUtils.setVisibility(this.mPGCInfoTopDivider, v2);
            UIUtils.setVisibility(this.mPGCInfoBottomDivider, v2);
        } else {
            UIUtils.setVisibility(this.mPGCInfoLayout, 0);
            UIUtils.setVisibility(this.mPGCInfoTopDivider, 0);
            UIUtils.setVisibility(this.mPGCInfoBottomDivider, 0);
            boolean v6 = this.f.entryItem.mIsLoading;
            ProgressBar v7 = this.mProgressBar;
            int v0 = v6 ? 0 : v2;
            UIUtils.setVisibility(((View) v7), v0);
            boolean v7_1 = this.f.entryItem.isSubscribed();
            if (v6) {
                TextView v8 = this.mSubscribeBtn;
                v0 = this.S ? v3 : v4;
                v8.setText(v0);
                this.mSubscribeBtn.setTextColor(ContextCompat.getColorStateList(this.mContext, v5));
                this.mSubscribeStatus.setVisibility(v2);
            }

            if (v6) {
                return;
            }

            if (this.S) {
                v0_1 = this.mSubscribeBtn;
                if (v7_1) {
                    v3 = com.ss.android.article.browser.R.string.video_detail_pgc_followed;
                }

                v0_1.setText(v3);
            } else {
                v0_1 = this.mSubscribeBtn;
                if (v7_1) {
                    v4 = com.ss.android.article.browser.R.string.video_detail_pgc_subscribed;
                }

                v0_1.setText(v4);
            }

            TextView v2_1 = this.mSubscribeBtn;
            Context v3_1 = this.mContext;
            v0 = v7_1 ? v5 : com.ss.android.article.browser.R.color.zi5;
            v2_1.setTextColor(ContextCompat.getColorStateList(v3_1, v0));
            this.mSubscribeStatus.setVisibility(View.VISIBLE);
            ImageView v1 = this.mSubscribeStatus;
            v0 = v7_1 ? com.ss.android.article.browser.R.drawable.o9 : com.ss.android.article.browser.R.drawable.new_subscribe_video_details;
            v1.setImageResource(v0);
        }
    }

    public final void a(int arg10, int arg11, BaseUser arg12) {
        int v0_1;
        Object[] v1;
        CallbackCenter.TYPE v0;
        int v8 = com.ss.android.article.browser.R.drawable.close_popup_textpage;
        int v7 = 3;
        int v6 = 2;
        if (this.mArticle != null && arg12 != null && this.d > 0 && arg12.mUserId > 0 && this.d == arg12.mUserId && (android.support.design.a.isComponentViewValid(this.mContext))) {
            this.f.entryItem.mIsLoading = false;
            if (this.f.entryItem.isSubscribed() != arg12.isFollowing()) {
                this.f.entryItem.setSubscribed(arg12.isFollowing());
                this.a();
                if (arg10 != 1009) {
                    this.a(v8, com.ss.android.article.browser.R.string.social_toast_fail_action);
                } else if (this.f.entryItem.isSubscribed()) {
                    v0 = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                    v1 = new Object[v7];
                    v1[0] = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                    v1[1] = Boolean.valueOf(true);
                    v1[v6] = Long.valueOf(this.d);
                    CallbackCenter.notifyCallback(v0, v1);
                    int v1_1 = com.ss.android.article.browser.R.drawable.doneicon_popup_textpage;
                    v0_1 = this.S ? com.ss.android.article.browser.R.string.video_detail_pgc_follow_success : com.ss.android.article.browser.R.string.video_detail_pgc_subscribe_success;
                    this.a(v1_1, v0_1);
                } else {
                    v0 = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                    v1 = new Object[v7];
                    v1[0] = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                    v1[1] = Boolean.valueOf(false);
                    v1[v6] = Long.valueOf(this.d);
                    CallbackCenter.notifyCallback(v0, v1);
                    v0_1 = this.S ? com.ss.android.article.browser.R.string.video_detail_pgc_follow_cancel : com.ss.android.article.browser.R.string.video_detail_pgc_subscribe_cancel;
                    this.a(v8, v0_1);
                }
            }
        }
    }

    public final void a(TextView arg12, String arg13) {
        int v1 = 0;
        int v2 = this.mContext.getResources().getColor(com.ss.android.article.browser.R.color.update_comment_more_text_selector);
        int v3 = this.mContext.getResources().getColor(com.ss.android.article.browser.R.color.c_);
        Spanned v0 = Html.fromHtml(arg13);
        SpannableStringBuilder v4 = new SpannableStringBuilder(((CharSequence) v0));
        Object[] v0_1 = v4.getSpans(0, ((CharSequence) v0).length(), URLSpan.class);
        int v5 = v0_1.length;
        while (v1 < v5) {
            Object v6 = v0_1[v1];
            v4.setSpan(new e(((URLSpan) v6).getURL(), ((com.ss.android.article.base.utils.b.e.a) this), v2, v3), v4.getSpanStart(v6), v4.getSpanEnd(v6), v4.getSpanFlags(v6));
            v4.removeSpan(v6);
            ++v1;
        }

        arg12.setText(((CharSequence) v4));
        arg12.setMovementMethod(new d());
        arg12.setLineSpacing(0f, 1f);
    }

    public final void a(BaseUser arg1) {
    }

    public final void onSubscribeDataChanged(SubscribeData arg12) {
        int v0_1;
        Object[] v4;
        CallbackCenter.TYPE v1_1;
        int v1;
        int v10 = com.ss.android.article.browser.R.drawable.close_popup_textpage;
        int v9 = 2;
        int v8 = 3;
        if (arg12 != null && (arg12.a == v8 || arg12.a == 1) && (android.support.design.a.isComponentViewValid(this.mContext))) {
            Object v0 = (arg12.c instanceof EntryItem) ? arg12.c : null;
            if (this.f == null) {
                return;
            }

            if (v0 == null) {
                return;
            }

            if (((EntryItem) v0).mId != this.f.entryItem.mId) {
                return;
            }

            if (this.f.entryItem == v0) {
                v1 = 1;
            } else if (this.f.entryItem.isSubscribed() != ((EntryItem) v0).isSubscribed()) {
                this.f.entryItem.setSubscribed(((EntryItem) v0).isSubscribed());
                v1 = 0;
            } else {
                return;
            }

            this.a();
            if (v1 == 0) {
                return;
            }

            if (arg12.pgcSubscribeResult == 0) {
                if (((EntryItem) v0).isSubscribed()) {
                    v1_1 = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                    v4 = new Object[v8];
                    v4[0] = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                    v4[1] = Boolean.valueOf(true);
                    v4[v9] = Long.valueOf(((EntryItem) v0).mId);
                    CallbackCenter.notifyCallback(v1_1, v4);
                    v1 = com.ss.android.article.browser.R.drawable.doneicon_popup_textpage;
                    v0_1 = this.S ? com.ss.android.article.browser.R.string.video_detail_pgc_follow_success : com.ss.android.article.browser.R.string.video_detail_pgc_subscribe_success;
                    this.a(v1, v0_1);
                    return;
                }

                v1_1 = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                v4 = new Object[v8];
                v4[0] = BaseAppData.callbackTypeSubscribePGCAddOrDelete;
                v4[1] = Boolean.valueOf(false);
                v4[v9] = Long.valueOf(((EntryItem) v0).mId);
                CallbackCenter.notifyCallback(v1_1, v4);
                v0_1 = this.S ? com.ss.android.article.browser.R.string.video_detail_pgc_follow_cancel : com.ss.android.article.browser.R.string.video_detail_pgc_subscribe_cancel;
                this.a(v10, v0_1);
                return;
            }

            this.a(v10, com.ss.android.article.browser.R.string.social_toast_fail_action);
        }
    }

    public final void a(BaseAdsData arg4, AdVideoInfo arg5) {
        if (this.L == null && this.mContext != null) {
            this.L = new com.ss.android.article.base.feature.detail2.video.a.a(this.mContext);
            com.ss.android.article.base.feature.detail2.video.a.a v1 = this.L;
            View v2 = this.h;
            if (v2 != null) {
                v1.b = v2.findViewById(com.ss.android.article.browser.R.id.pl);
                v1.c = v2.findViewById(com.ss.android.article.browser.R.id.pm);
                v1.d = v2.findViewById(com.ss.android.article.browser.R.id.pn);
                v1.e = v2.findViewById(com.ss.android.article.browser.R.id.pq);
                v1.f = v2.findViewById(com.ss.android.article.browser.R.id.pr);
                v1.g = v2.findViewById(com.ss.android.article.browser.R.id.po);
            }
        }

        if (this.L != null) {
            this.L.a(arg4, arg5);
        }
    }

    public final void a(boolean arg8) {
        float v3 = 180f;
        this.M = arg8;
        TextView v4 = this.mVideoContentTv;
        int v0 = arg8 ? 0 : 8;
        UIUtils.setVisibility(((View) v4), v0);
        ImageView v4_1 = this.mExpandBtn;
        String v5 = "rotation";
        float[] v6 = new float[2];
        float v0_1 = arg8 ? 0f : v3;
        v6[0] = v0_1;
        if (!arg8) {
            v3 = 0f;
        }

        v6[1] = v3;
        ObjectAnimator.ofFloat(v4_1, v5, v6).setDuration(200).start();
    }

    public final void a(boolean arg3, DiggLayout arg4, DiggLayout arg5, boolean arg6) {
        DiggLayout v0 = arg3 ? arg4 : arg5;
        if (this.mArticle != null && arg4 != null && arg5 != null && v0 != null) {
            arg4.setText(android.support.design.a.c(this.mArticle.diggCount));
            arg5.setText(android.support.design.a.c(this.mArticle.buryCount));
            if (arg6) {
                v0.onDiggClick();
            }

            if (arg4 != null) {
                arg4.setSelected(this.mArticle.userDigg);
            }

            if (arg5 == null) {
                return;
            }

            arg5.setSelected(this.mArticle.userBury);
        }
    }

    final void b(String arg3) {
        MobClickCombiner.onEvent(this.mContext, "video", arg3);
    }

    final void b(boolean arg11) {
        int v0;
        int v3 = com.ss.android.article.browser.R.drawable.close_popup_textpage;
        int v2 = 2;
        Article v5 = this.mArticle;
        if (v5 != null) {
            if (v5.userDigg) {
                this.a(arg11, this.mDiggLayout, this.mBuryLayout, false);
                this.a(v3, com.ss.android.article.browser.R.string.ss_hint_digg);
            } else if (v5.userBury) {
                this.a(arg11, this.mDiggLayout, this.mBuryLayout, false);
                this.a(v3, com.ss.android.article.browser.R.string.ss_hint_bury);
            } else {
                if (arg11) {
                    ((AbsArticle) v5).userDigg = true;
                    ++((AbsArticle) v5).diggCount;
                    v0 = 1;
                } else {
                    ((AbsArticle) v5).userBury = true;
                    ++((AbsArticle) v5).buryCount;
                    v0 = v2;
                }

                AbsArticle.a v6 = new AbsArticle.a();
                v3 = ((AbsArticle) v5).userDigg ? 1 : 0;
                v6.userDigg = v3;
                v6.diggCount = ((AbsArticle) v5).diggCount;
                v3 = ((AbsArticle) v5).userBury ? 1 : 0;
                v6.userBury = v3;
                v6.buryCount = ((AbsArticle) v5).buryCount;
                CallbackCenter.TYPE v3_1 = BaseAppData.callbackTypeSpipeItemStateChanged;
                Object[] v7 = new Object[3];
                v7[0] = BaseAppData.callbackTypeSpipeItemStateChanged;
                v7[1] = Long.valueOf(((AbsArticle) v5).groupId);
                v7[v2] = v6;
                CallbackCenter.notifyCallback(v3_1, v7);
                if (this.P != null) {
                    this.P.a(v0, ((AbsArticle) v5), 0);
                }

                Context v2_1 = this.mContext;
                String v3_2 = "xiangping";
                String v0_1 = arg11 ? "video_detail_digg" : "video_detail_bury";
                MobClickCombiner.onEvent(v2_1, v3_2, v0_1);
                this.a(arg11, this.mDiggLayout, this.mBuryLayout, true);
            }
        }
    }

    public final void c(String arg14) {
        int v2_1;
        long v0_2;
        Intent v3;
        JSONObject v8;
        String v12;
        long v10 = 0;
        if (this.K != null) {
            g$a v9 = this.K;
            if (TextUtils.isEmpty(((CharSequence) arg14))) {
                return;
            }

            FragmentActivity v1 = v9.a.getActivity();
            MobClickCombiner.onEvent(((Context) v1), "video", "detail_abstract_click");
            if (TTUtils.isValidUrl(arg14)) {
                android.support.design.a.b(((Context) v1), arg14, null);
                return;
            }

            Uri v0 = Uri.parse(arg14);
            try {
                v12 = v0.getQueryParameter("keyword");
                if (android.support.design.a.isTextEmpty(v12)) {
                    v8 = new JSONObject();
                    v8.put("click_groupid", Long.valueOf(v0.getQueryParameter("groupid")).longValue());
                    MobClickCombiner.onEvent(((Context) v1), "video", "detail_abstract_click", 0, 0, v8);
                    AppUtil.b(((Context) v1), arg14);
                    return;
                }

                v8 = new JSONObject();
                v8.put("click_keyword", v12);
                MobClickCombiner.onEvent(((Context) v1), "video", "detail_abstract_click", 0, 0, v8);
                v3 = new Intent();
                v3.setClassName(((Context) v1), "com.ss.android.article.base.feature.search.SearchActivity");
                v3.putExtra("keyword", v12);
                v3.putExtra("from", "content");
                Article v2 = v9.a.mArticle;
                if (v2 != null) {
                    v10 = ((AbsArticle) v2).groupId;
                    v0_2 = ((AbsArticle) v2).itemId;
                    v2_1 = ((AbsArticle) v2).aggrType;
                } else {
                    v2_1 = 0;
                    v0_2 = v10;
                }
                v3.putExtra("group_id", v10);
                v3.putExtra("item_id", v0_2);
                v3.putExtra("aggr_type", v2_1);
                v9.a.startActivity(v3);
            } catch (Exception v0_1) {

            }
        }
    }

    public static final class g$a {
        public final NewVideoDetailFragment a;

        public g$a(NewVideoDetailFragment arg1) {
            this.a = arg1;

        }

        public final void a(int arg4) {
            if (arg4 > 0 && this.a.mArticleShareHelper != null && this.a.mArticle != null) {
                JSONObject v0 = new JSONObject();
                try {
                    v0.put("source_type", "video");
                    v0.put("section", "centre_button");
                    v0.put("fullscreen", "notfullscreen");
                    v0.put("icon_seat", "exposed");
                } catch (JSONException v1) {
                }

                this.a.mArticleShareHelper.position = "detail";
                this.a.mArticleShareHelper.fillShareParams(v0);
                this.a.mArticleShareHelper.share(arg4, this.a.mArticle);
            }
        }

        public final void a(String arg2) {
            this.a.b(arg2);
        }
    }
}

